package com.ft.sso.secrityauthor2sso.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author RenPu
 * @Date 2022/9/28 11:14
 * @Version 1.0
 * @Description: 测试环境控制层
 **/

@RestController
@RequestMapping("/testApi")
public class TestApiController {

    @Value("${spring.application.name}")
    private String serverName;

    @GetMapping("/login")
    public String login(){
        return "可以通过访问！！！！！：： 服务提者:"+serverName;
    }

    @GetMapping("/getOrder")
    public String getOrder(){
        return "获取订单详细，信息.......：：服务提供者为 ："+serverName;
    }






}
